﻿using Ndns.ServerHost.Abstractions;
using System;

namespace Ndns.ServerHost.Services
{
    class ServiceBuilderImpl : IServiceBuilder
    {
        private readonly ServiceCollectionImpl _serviceCollection;

        public ServiceBuilderImpl(ServiceCollectionImpl serviceCollection)
        {
            _serviceCollection = serviceCollection;
        }

        public IServiceBuilder Add(Type serviceType, object serviceObject)
        {
            _serviceCollection.Add(serviceType, serviceObject);
            return this;
        }
    }
}
